Other Classes

The following classes are available globally.

  • Information about an attribution statement, usually a copyright or trademark statement, associated with a map content source.

    See more

    Declaration

    Objective-C

    @interface MGLAttributionInfo : NSObject

    Swift

    class MGLAttributionInfo : NSObject
  • An MGLStyleConstantValue object is a generic container for a style attribute value that remains constant as the zoom level changes. The layout and paint attribute properties of MGLStyleLayer objects can be set to MGLStyleConstantValue objects.

    The MGLStyleConstantValue class takes a generic parameter T that indicates the Foundation class being wrapped by this class.

    See more

    Declaration

    Objective-C

    @interface MGLStyleConstantValue <T> : MGLStyleValue<T>

    Swift

    class MGLStyleConstantValue
  • An MGLStyleFunction is a is an abstract superclass for functions that are defined by an MGLCameraStyleFunction, MGLSourceStyleFunction, or MGLCompositeStyleFunction object.

    Do not create instances of this class directly, and do not create your own subclasses of this class. Instead, use one of the class factory methods in MGLStyleValue to create instances of the following concrete subclasses: MGLCameraStyleFunction, MGLSourceStyleFunction, and MGLCompositeStyleFunction.

    The MGLStyleFunction class takes a generic parameter T that indicates the Foundation class being wrapped by this class.

    See more

    Declaration

    Objective-C

    @interface MGLStyleFunction <T> : MGLStyleValue<T>

    Swift

    class MGLStyleFunction
  • An MGLCameraStyleFunction is a value function defining a style value that changes as the zoom level changes. The layout and paint attribute properties of an MGLStyleLayer object can be set to MGLCameraStyleFunction objects. Use a camera function to create the illusion of depth and control data density.

    The MGLCameraStyleFunction class takes a generic parameter T that indicates the Foundation class being wrapped by this class.

    See more

    Declaration

    Objective-C

    @interface MGLCameraStyleFunction <T> : MGLStyleFunction<T>

    Swift

    class MGLCameraStyleFunction
  • An MGLSourceStyleFunction is a value function defining a style value that changes with its properties. The layout and paint attribute properties of an MGLStyleLayer object can be set to MGLSourceStyleFunction objects. Use source functions to visually differentate types of features within the same layer or create data visualizations.

    The MGLSourceStyleFunction class takes a generic parameter T that indicates the Foundation class being wrapped by this class.

    See more

    Declaration

    Objective-C

    @interface MGLSourceStyleFunction <T> : MGLStyleFunction<T>

    Swift

    class MGLSourceStyleFunction
  • An MGLCompositeStyleFunction is a value function defining a style value that changes with the feature attributes at each map zoom level. The layout and paint attribute properties of an MGLStyleLayer object can be set to MGLCompositeStyleFunction objects. Use composite functions to allow the appearance of a map feature to change with both its attributes and the map zoom level.

    The MGLCompositeStyleFunction class takes a generic parameter T that indicates the Foundation class being wrapped by this class.

    See more

    Declaration

    Objective-C

    @interface MGLCompositeStyleFunction <T> : MGLStyleFunction<T>

    Swift

    class MGLCompositeStyleFunction